//
//  ArtMark.h
//  SmartRoadShow
//
//  Created by  ibokan on 10-9-25.
//  Copyright 2010 simonwang142232@gmail.com. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface ArtMark : NSObject 
{
	int _id;
	int artMark_id;
	int news_id;
	NSString *_title;
	NSString *_thumb;
	NSString *_city;
	NSString *_marktype;
	int _level;
	NSString *_address;
	NSString *_tel;
	NSString *_googleposi;
	NSString *_content;
	NSString *_pubdate;
}
@property int _id;
@property int artMark_id;
@property int news_id;
@property (nonatomic, retain) NSString *_title;
@property (nonatomic, retain) NSString *_thumb;
@property (nonatomic, retain) NSString *_city;
@property (nonatomic, retain) NSString *_marktype;
@property  int _level;
@property (nonatomic, retain) NSString *_address;
@property (nonatomic, retain) NSString *_tel;
@property (nonatomic, retain) NSString *_googleposi;
@property (nonatomic, retain) NSString *_content;
@property (nonatomic, retain) NSString *_pubdate;

+(int)delete:(int)Id;

+(BOOL) findArtMarkID:(int)artMarkId;

+(NSArray *)findCity:(NSString *)city MarkType:(NSString *)type;

+(int)updateWithArtMarkID:(int)markId NewsId:(int)newsId Title:(NSString *)title Thumb:(NSString *)thumb City:(NSString *)city Marktype:(NSString *)marktype Level:(int)level Address:(NSString *)add Tel:(NSString *)tel Googleposi:(NSString *)posi Content:(NSString *)content Pubdate:(NSString *)pubdate;

+(int)insertWithArtMarkID:(int)markId NewsId:(int)newsId Title:(NSString *)title Thumb:(NSString *)thumb City:(NSString *)city Marktype:(NSString *)marktype Level:(int)level Address:(NSString *)add Tel:(NSString *)tel Googleposi:(NSString *)posi Content:(NSString *)content Pubdate:(NSString *)pubdate;



-(id) initWithID:(int)Id ArtMark_id:(int)markId NewsId:(int)newsId Title:(NSString *)title Thumb:(NSString *)thumb City:(NSString *)city Marktype:(NSString *)marktype Level:(int)level Address:(NSString *)add Tel:(NSString *)tel Googleposi:(NSString *)posi Content:(NSString *)content Pubdate:(NSString *)pubdate;


//某个新闻的内容
+(NSString*)findNewsContentFromNewsId:(int)newsId;


@end
